﻿<%@ page title="" language="C#" masterpagefile="~/MasterPages/MasterPagePrivate.master" autoeventwireup="true" inherits="Pages_Private_Admin_Packages, BtcHousing" stylesheettheme="ServerControls" %>
<%@ Register Src="~/UserControls/DataTableList.ascx" TagName="DataTableList" TagPrefix="UC" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageHeader" Runat="Server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="PageBody" Runat="Server">
    <h4 id="h4Heading" runat="server">Manage Packages</h4>    
    <div id="divMessage" runat="server" visible="false" enableviewstate="false"></div>    
    <div class="clearboth"></div>
    
    <asp:Panel ID="pnlFormContainer" runat="server" DefaultButton="btnSave">
        <%--Package Information Group Box Start--%>        
        
        <div class="WizardContainer">
            <div class="StepHeaderContainer">
                <div class="StepHeading">
                    <asp:Label ID="lblFormTitle" runat="server" Text="Add/Edit Package"></asp:Label>
                </div>
                <div class="StepSubHeading"><asp:Label ID="lblFormSubTitle" runat="server" Text="Define Your Package."></asp:Label></div>
            </div>
            <div class="StepBody">
                <table cellpadding="3" cellspacing="0" style="width:100%;">
                    <colgroup>
                        <col style="width:15%;" />
                        <col style="width:35%;" />                    
                        <col style="width:15%;" />                
                        <col style="width:35%;" />                                        
                    </colgroup>

				<tr>
					<td>Name<span class="requiredMark">*</span></td>
					<td>
						<asp:TextBox ID="txtName" MaxLength="250" runat="server"></asp:TextBox>
						<asp:RequiredFieldValidator ID="rfvName" runat="server"
							ControlToValidate="txtName" SetFocusOnError="true"
							ErrorMessage="Please Enter a Name." Display="Dynamic"
							ValidationGroup="SaveInfo">
						</asp:RequiredFieldValidator>
					</td>
					<td>Price<span class="requiredMark">*</span></td>
					<td>
						<asp:TextBox ID="txtPrice" MaxLength="9" runat="server"></asp:TextBox>
						<asp:RequiredFieldValidator ID="rfvPrice" runat="server"
							ControlToValidate="txtPrice" SetFocusOnError="true"
							ErrorMessage="Please Enter a Price." Display="Dynamic"
							ValidationGroup="SaveInfo">
						</asp:RequiredFieldValidator>
                        <asp:CompareValidator ID="CompareValidator2" runat="server"
                            Operator="DataTypeCheck" Type="Double"
							ControlToValidate="txtPrice" SetFocusOnError="true"
							ErrorMessage="Please Enter Price in Digits only." Display="Dynamic"
							ValidationGroup="SaveInfo">
						</asp:CompareValidator>
					</td>
				</tr>
				<tr>
					<td>Currency<span class="requiredMark">*</span></td>
					<td>
						<asp:DropDownList ID="ddlCurrencyID" runat="server"></asp:DropDownList>
						<asp:RequiredFieldValidator ID="rfvCurrencyID" runat="server"
							ControlToValidate="ddlCurrencyID" SetFocusOnError="true"
							ErrorMessage="Please Select a Currency." Display="Dynamic"
							ValidationGroup="SaveInfo">
						</asp:RequiredFieldValidator>
					</td>
					<td>Duration<span class="requiredMark">*</span></td>
					<td>
						<asp:TextBox ID="txtDuration" MaxLength="4" runat="server"></asp:TextBox>
						<asp:RequiredFieldValidator ID="rfvDuration" runat="server"
							ControlToValidate="txtDuration" SetFocusOnError="true"
							ErrorMessage="Please Enter a Duration." Display="Dynamic"
							ValidationGroup="SaveInfo">
						</asp:RequiredFieldValidator>
                        <asp:CompareValidator ID="CompareValidator1" runat="server"
                            Operator="DataTypeCheck" Type="Integer"
							ControlToValidate="txtDuration" SetFocusOnError="true"
							ErrorMessage="Please Enter Duration in Digits only." Display="Dynamic"
							ValidationGroup="SaveInfo">
						</asp:CompareValidator>
					</td>
				</tr>
				<tr>
					<td>Project Limit<span class="requiredMark">*</span></td>
					<td>
						<asp:TextBox ID="txtProductLimit" MaxLength="4" runat="server"></asp:TextBox>
						<asp:RequiredFieldValidator ID="rfvProductLimit" runat="server"
							ControlToValidate="txtProductLimit" SetFocusOnError="true"
							ErrorMessage="Please Enter a Product Limit." Display="Dynamic"
							ValidationGroup="SaveInfo">
						</asp:RequiredFieldValidator>
                        <asp:CompareValidator ID="cvProductLimit" runat="server"
                            Operator="DataTypeCheck" Type="Integer"
							ControlToValidate="txtProductLimit" SetFocusOnError="true"
							ErrorMessage="Please Enter Product Limit in Digits only." Display="Dynamic"
							ValidationGroup="SaveInfo">
						</asp:CompareValidator>                         
					</td>
					<td>Is Active?</td>
                    <td><asp:CheckBox ID="chkIsActive" runat="server" /></td>
				</tr>                    
                </table>
        </div>
            <div class="StepButtonContainer">
                <asp:Button ID="btnSave" runat="server" Text="Save" ValidationGroup="SaveInfo" OnClick="btnSave_Click" />            
                <%--<asp:Button ID="btnList" runat="server" Text="View List" OnClick="btnList_Click" /> --%>           
            </div>
        </div>
        <%--Package Information Group Box End--%>

        <div class="GroupBox">
            <div class="GroupHeaderOverlay">Package List</div>
            <UC:DataTableList ID="ucPackageList" runat="server" 
                LinkFields="ID" CheckForDeletePermission="false"
                ExcludeVisibleFields="ID, Created, Modified" />
        </div>
   </asp:Panel>   
</asp:Content>

